package com.itheima.app.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("demo")
public class D {
    @Value("${name}")
    private String username;
     @RequestMapping("findAll")
    public String findAll(){

        return "success"+username;
    }
}
